package com.example.demo.core.repository;

import com.example.demo.core.entity.Permission;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PermissionRepository extends JpaRepository<Permission, Integer> {


    /**
    * @Description: 根据权限ID获取权限
    * @Param:  id: 权限ID
    * @return:  权限实体
    * @Author: wangze
    */
    Permission findPermissionById(Integer id);
}
